3.219 \(\int \frac{\cot (c+d x)}{\csc (c+d x)+\sin (c+d x)} \, dx\)

Optimal. Leaf size=11 \[ \frac{\tan ^{-1}(\sin (c+d x))}{d} \]

[Out]

ArcTan[Sin[c + d*x]]/d

________________________________________________________________________________________

Rubi [A]  time = 0.0253427, antiderivative size = 11, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.091, Rules used = {4338, 203} \[ \frac{\tan ^{-1}(\sin (c+d x))}{d} \]

Antiderivative was successfully verified.

[In]

Int[Cot[c + d*x]/(Csc[c + d*x] + Sin[c + d*x]),x]

[Out]

ArcTan[Sin[c + d*x]]/d

Rule 4338

Int[(u_)*(F_)[(c_.)*((a_.) + (b_.)*(x_))], x_Symbol] :> With[{d = FreeFactors[Sin[c*(a + b*x)], x]}, Dist[1/(b
*c), Subst[Int[SubstFor[1/x, Sin[c*(a + b*x)]/d, u, x], x], x, Sin[c*(a + b*x)]/d], x] /; FunctionOfQ[Sin[c*(a
 + b*x)]/d, u, x, True]] /; FreeQ[{a, b, c}, x] && (EqQ[F, Cot] || EqQ[F, cot])

Rule 203

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTan[(Rt[b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[b, 2]), x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

Rubi steps

\begin{align*} \int \frac{\cot (c+d x)}{\csc (c+d x)+\sin (c+d x)} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\sin (c+d x)\right )}{d}\\ &=\frac{\tan ^{-1}(\sin (c+d x))}{d}\\ \end{align*}

Mathematica [A]  time = 0.0362957, size = 11, normalized size = 1. \[ \frac{\tan ^{-1}(\sin (c+d x))}{d} \]

Antiderivative was successfully verified.

[In]

Integrate[Cot[c + d*x]/(Csc[c + d*x] + Sin[c + d*x]),x]

[Out]

ArcTan[Sin[c + d*x]]/d

________________________________________________________________________________________

Maple [A]  time = 0.045, size = 13, normalized size = 1.2 \begin{align*} -{\frac{\arctan \left ( \csc \left ( dx+c \right ) \right ) }{d}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cot(d*x+c)/(csc(d*x+c)+sin(d*x+c)),x)

[Out]

-1/d*arctan(csc(d*x+c))

________________________________________________________________________________________

Maxima [A]  time = 1.66518, size = 15, normalized size = 1.36 \begin{align*} \frac{\arctan \left (\sin \left (d x + c\right )\right )}{d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(d*x+c)/(csc(d*x+c)+sin(d*x+c)),x, algorithm="maxima")

[Out]

arctan(sin(d*x + c))/d

________________________________________________________________________________________

Fricas [A]  time = 0.486142, size = 32, normalized size = 2.91 \begin{align*} \frac{\arctan \left (\sin \left (d x + c\right )\right )}{d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(d*x+c)/(csc(d*x+c)+sin(d*x+c)),x, algorithm="fricas")

[Out]

arctan(sin(d*x + c))/d

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cot{\left (c + d x \right )}}{\sin{\left (c + d x \right )} + \csc{\left (c + d x \right )}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(d*x+c)/(csc(d*x+c)+sin(d*x+c)),x)

[Out]

Integral(cot(c + d*x)/(sin(c + d*x) + csc(c + d*x)), x)

________________________________________________________________________________________

Giac [A]  time = 1.13988, size = 15, normalized size = 1.36 \begin{align*} \frac{\arctan \left (\sin \left (d x + c\right )\right )}{d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(d*x+c)/(csc(d*x+c)+sin(d*x+c)),x, algorithm="giac")

[Out]

arctan(sin(d*x + c))/d